import { Planet, Fm, Music, VideoOne, Like, Computer, InboxIn, PlayTwo } from '@icon-park/vue-next'
import type { IMenus } from '@/types/menu'

export const useMenu = () => {
  const menus: IMenus[] = [
    {
      name: '在线音乐',
      menus: [
        {
          name: '推荐',
          key: 'discover',
          icon: Planet
        },
        {
          name: '音乐馆',
          key: 'music',
          icon: Music
        },
        {
          name: '视频',
          key: 'video',
          icon: VideoOne
        },
        {
          name: '电台',
          key: 'dj',
          icon: Fm
        }
      ]
    },
    {
      name: '我的音乐',
      menus: [
        {
          name: '我喜欢',
          key: 'like',
          icon: Like
        },
        {
          name: '本地歌曲',
          key: 'local',
          icon: Computer
        },
        {
          name: '下载歌曲',
          key: 'download',
          icon: InboxIn
        },
        {
          name: '最近播放',
          key: 'recently',
          icon: PlayTwo
        }
      ]
    }
  ]
  return {
    menus
  }
}
